Takes an item from the BlockingCollection<(Of <(T>)>).
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function Take As T |
Return Value
The item removed from the collection.
Remarks
Exceptions
| Exception | Condition |
|---|
| System..::.OperationCanceledException | The BlockingCollection<(Of <(T>)>) is empty and has been marked
as complete with regards to additions. |
| System..::.ObjectDisposedException | The BlockingCollection<(Of <(T>)>) has been disposed. |
| System..::.InvalidOperationException | The underlying collection was modified
outside of this BlockingCollection<(Of <(T>)>) instance. |
See Also